<?php
/**
 * Created by PhpStorm.
 * User: soulmates
 * Date: 2017/8/15
 * Time: 上午8:16
 */
namespace app\restaurantadmin\validate;

use think\Validate;

class foodtype extends Validate
{

    protected $rule = [

        'type_name' => 'require|max:30',

    ];
    protected $message = [

        'type_name.require'  => '菜品类型名称不能为空！',
        'type_name.max'  => '菜品类型名称不能超过30个字！',

    ];


}





?>